package com.app.miwawa.api.eam.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.framework.common.api.entity.CommonEntityUUID;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 电访记录
 * <p>描述: 教务管理</p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年2月10日 下午7:24:40
 * @version 1.0.2016
 */
@Entity @Table(name = "TB_EAM_STUDENT_CALLON")
public class StudentCallon extends CommonEntityUUID {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = -4116040705672999277L;

	// 电访状态及原因
	@Column(name = "reason", length = 150, nullable = true)
	private String reason;
	
	// 通话时长
	@Column(name = "length", length = 10, nullable = true)
	private String length;
	
	// 电访内容
	@Column(name = "content", length = 150, nullable = true)
	private String content;
	
	// 电访时间
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
	@Column(name = "create_date", nullable = true)
	private Date createDate;
	
	// 处理人（老师）
	@Column(name = "user_id", length = 50, nullable = true)
	private String userid;
	
	// 处理人ID（老师）
	@Column(name = "user_name", length = 50, nullable = true)
	private String username;
	
	// 电访目标（妈妈、爸爸）
	@Column(name = "parent", length = 50, nullable = true)
	private String parent;

	@Column(name = "parent_id", length = 50, nullable = true)
	private String parentId;
		
	// 学员
	@Column(name = "student", length = 50, nullable = true)
	private String student;
	
	// 学员ID
	@Column(name = "student_id", length = 50, nullable = true)
	private String studentId;

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getLength() {
		return length;
	}

	public void setLength(String length) {
		this.length = length;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getStudent() {
		return student;
	}

	public void setStudent(String student) {
		this.student = student;
	}

	public String getStudentId() {
		return studentId;
	}

	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}

}
